﻿#ifndef MainFrameUi_H
#define MainFrameUi_H

#include <QDialog>
#include "calibrationwidget.h"
#include <QToolButton>
#include "frmlightbutton.h"
#include "basesetting.h"
#include "suctionsettingwidget.h"
#include "yuanzhousettingwidget.h"
#include "testingmainwidget.h"
#include "about.h"
#include "testsearchwidget.h"

namespace Ui {
class MainFrameUi;
}

class MainFrameUi : public QDialog
{
    Q_OBJECT

public:
    explicit MainFrameUi(QWidget *parent = 0);
    ~MainFrameUi();

protected:
    bool eventFilter(QObject *watched, QEvent *event);

private:
    Ui::MainFrameUi *ui;
    QList<int> pixCharMain;
    QList<QToolButton *> btnsMain;
    frmLightButton *flButton;
    baseSetting *baseWidget;
    suctionSettingWidget *sWidget;
    yuanzhouSettingWidget *yzWidget;
    QList<int> pixCharConfig;
    QList<QToolButton *> btnsConfig;
    about *aboutWidget;
    testSearchWidget *searchWidget;

    bool isStart = false;
private slots:
    void setStartTrue();
    void setStopTrue();
    void initForm();
    void buttonClick();
    void initLeftMain();
    void initLeftConfig();
    void leftMainClick();
    void leftConfigClick();
private slots:
    void on_btnMenu_Min_clicked();
    void on_btnMenu_Max_clicked();
    void on_btnMenu_Close_clicked();

private:
    calibrationWidget *caliWidget;
    testingMainWidget *testWidget;  //吸阻测试Widget
signals:
    void transitHeader(QStringList);
};

#endif // MainFrameUi_H
